package gu.simplemq.mqtt;


import java.util.Properties;

import gu.simplemq.MQConstProvider;

public class MqttConstProvider implements MQConstProvider,MqttConstants{
	public static final MqttConstProvider MPROVIDER = new MqttConstProvider();
	private static final String[] optionalLocationNames = new String[]{MQTT_serverURI,MQTT_connOpts_serverURIs};

	@Override
	public String getDefaultSchema() {
		return PAHO_MQTT_SCHEMA;
	}

	@Override
	public String getDefaultHost() {
		return DEFAULT_MQTT_HOST;
	}

	@Override
	public int getDefaultPort() {
		return DEFAULT_MQTT_PORT;
	}

	@Override
	public String getDefaultMQLocation() {
		return DEFAULT_MQTT_URI;
	}
	
	@Override
	public String getMainLocationName() {
		return MQTT_serverURI;
	}

	@Override
	public String getMainUserName() {
		return MQTT_connOpts_username;
	}

	@Override
	public String getMainPassword() {
		return MQTT_connOpts_password;
	}

	@Override
	public String getMainClientID() {
		return MQTT_clientId;
	}

	@Override
	public String getMainTimeout() {
		return MQTT_connOpts_connectionTimeout;
	}
	
	@Override
	public String getMainConnectTimeout() {
		return getMainTimeout();
	}

	@Override
	public String[] getOptionalLocationNames() {
		return optionalLocationNames;
	}

	public Properties getDefaultMQProperties() {
		return MqttPoolLazys.DEFAULT_PARAMETERS;
	}

}
